package com.company.generic;

import cn.hutool.db.Session;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

public abstract class BaseDao<T> {



    public BaseDao(){
        Class<?> aClass = this.getClass();
        ParameterizedType pt = (ParameterizedType) aClass.getGenericSuperclass();
        Class actualTypeArgument = (Class) pt.getActualTypeArguments()[0];
        System.out.println(actualTypeArgument);
    }

}
